<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h1 v-text="info"></h1>
</div>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    let v = new Vue({
        el:"div",
        data:{
            info:"Hello vue!"
        }
    })
    setTimeout(function () {
        //当Vue 中的变量发生改变，Vue会找到和此变量绑定过的元素 让元素跟着变
        v.info = "修改了！"
    },3000)
</script>
</body>
</html>